/**
 * Created by lwy on 2017/6/11.
 */
    var id = GetQueryString('id');
if(id==''||id==null||id==undefined){
var detail=decodeURI(decodeURI(window.location.href)).split('=');
var code = detail[1].split('&')[0];
var name = detail[2].split('&')[0];
var goodsName = detail[3].split('&')[0];
var goodsNum = detail[4].split('&')[0];
var goodsPrice = detail[5].split('&')[0];
var total = detail[6].split('&')[0];
var payMoney = detail[7].split('&')[0];
var tips = detail[8].split('&')[0];
var illustrate = detail[9];
$('#name').html(name);
$('#code').html(code);
$('#goodsName').html(goodsName);
$('#goodsNum').html(goodsNum);
$('#goodsPrice').html(goodsPrice);
$('#total').html(total);
$('#payMoney').html(payMoney);
$('#tips').html(tips);
$('#illustrate').html(illustrate);
if(illustrate==''){
    $('#illustrateBox').hide();
}else{
    $('#illustrateBox').show();
}
}else{
    $.ajax({
        url:'/zuoDanC/oneOrder.json',
        dataType:'json',
        data:{
            token:getItem('token'),
            orderId:id,
        },
        success:function(data){
            if(data.code==1){
                var data = data.datas;
                $('#name').html(name);
                $('#code').html(data.Code);
                $('#goodsName').html(data.GoodsName);
                $('#goodsNum').html(data.GoodsNum);
                $('#goodsPrice').html(data.GoodOnePrice);
                $('#total').html(data.ShopYingYeMoney);
                $('#payMoney').html(data.ShopPayMoney);
                $('#tips').html(data.Memo);
                $('#illustrate').html(data.illustrate);
                $('#shopName').html(data.ShopName);
                $('#managerName').html(data.managerName);
                $('#shopNameBox').show();
                $('#managerNameBox').show();
                    $('#illustrateBox').hide();
            }
        }
    })
}